<?php
namespace Core\Service;

use Phalcon\Di\Injectable;
use Phalcon\Mvc\Url as PhalconUrl;

class Url extends Injectable {

    public function register() {

        $url = new PhalconUrl();
        $url->setBaseUri($this->config->system->baseUrl);
        $this->di->setShared('url', $url);
        return $this;

    }

}